/**
 * MusicNet Alignment Tool
 *
 * Copyright (c) 2010 Joe Lambert
 * 
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *  
 **/

* { margin: 0; padding: 0; outline: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box }

body, html, #surface
{
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	
	font-family: helvetica, arial, sans-serif;
	font-size: 12px;
	
	color: #1b2131;
}

#loading
{
	position: absolute;
	top: 5px;
	right: 5px;
	padding: 5px 10px 5px 20px;
	background: url(img/loading.gif) 5px center no-repeat #FFF;
	min-height: 20px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

#surface > *
{
	height: 100%;
	float: left;
}

#surface #lhs
{
	width: 45%;
	background: red;
	
	background:
	  url(img/noise.png) center center,
	  -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.24)), color-stop(0.1, rgba(0,0,0,0)), to(rgba(0,0,0,0))),
	  -webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.24)), color-stop(0.1, rgba(0,0,0,0)), to(rgba(0,0,0,0))),
	  -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,0.24)), color-stop(0.1, rgba(0,0,0,0)), to(rgba(0,0,0,0))),
	  -webkit-gradient(linear, right top, left top, from(rgba(0,0,0,0.24)), color-stop(0.1, rgba(0,0,0,0)), to(rgba(0,0,0,0))),
	  -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.1)), color-stop(0.6, rgba(0,0,0,0)), to(rgba(0,0,0,0.1))),
	  -webkit-gradient(linear, left top, left bottom, from(#848ea2), to(#5b687f));
	
	background:
	  url(img/noise.png) center center,
	  -moz-linear-gradient(-90deg, rgba(0,0,0,0.24), rgba(0,0,0,0) 10%, rgba(0,0,0,0)),
	  -moz-linear-gradient(90deg, rgba(0,0,0,0.24), rgba(0,0,0,0) 10%, rgba(0,0,0,0)),
	  -moz-linear-gradient(0deg, rgba(0,0,0,0.24), rgba(0,0,0,0) 10%, rgba(0,0,0,0)),
	  -moz-linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0) 10%, rgba(0,0,0,0)),
	  -moz-linear-gradient(-90deg, rgba(0,0,0,0.1), rgba(0,0,0,0) 60%, rgba(0,0,0,0.1)),
	  -moz-linear-gradient(-90deg, #848ea2, #5b687f);
	
	-moz-box-shadow: 2px 0px 15px #333;
	-webkit-box-shadow: 2px 0px 15px #333;
}

#surface .draghandle
{
	width: 8px;
	background: rgba(0,0,0,0.2);
	position: absolute;
	right:0px;
	top: 0px;
	height: 100%;
	cursor: ew-resize;
	border-left:1px solid rgba(255,255,255,0.2);
	border-right:1px solid rgba(255,255,255,0.4);
}

#surface #rhs
{
	width: 55%;
	background: #fff;
}

#surface #lhs #lhscontainer
{
	width: 90%;
	height: 90%;
	margin: 5%;
}

.list
{
	padding: 10px;
}

#ungroupedlist, #groupedlist
{
	height: 100%;
	float: left;
	width: 49%;
	overflow: auto;
	
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

#ungroupedlist.focus, #groupedlist.focus
{
	background: rgba(255, 255, 255, 0.1);
}

/* GENERIC A2Z */
.a2z
{
	width: 5%;
	list-style: none;
	float: left;
	height: 100%;
	font-size: 0.8em;
}

.a2z li
{
	color: rgba(0, 0, 0, 0.4);
	padding: 3px;
	cursor: default;
	height: 3.7%;
	
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

.a2z li.enabled
{
	color: rgba(0, 0, 0, 1);
	cursor: pointer;
}

.a2z li.enabled:hover
{
	background: rgba(0, 0, 0, 0.4);
	color: rgba(255, 255, 255, 0.7);
}

.a2z li.selected, .a2z li.selected:hover
{
	background: #31374D;
	color: rgba(255, 255, 255, 0.7);
}


/* GENERIC LIST */

#lhs .title
{
	height: 5%;
	font-weight: bold;
	text-align: center;
	line-height: 100%;
	font-size: 1.3em;
	text-shadow: 0px 1px rgba(255, 255, 255, 0.3);
	
}

#lhs .title div
{
	padding-bottom: 10px;
	border-bottom: 1px solid #31374d;
	-moz-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
	-webkit-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
}

li.even
{
	background: rgba(255, 255, 255, 0.1);
}

li.odd
{
	background: rgba(255, 255, 255, 0.2);
}

.body
{
	height: 95%;
}

.datacontainer
{
	margin-left: 7%;
	height: 92%;
	overflow: auto;
	font-size: 0.9em;
}

.datacontainer li
{
	position: relative;
}

.datacontainer li .loading
{
	width: 16px;
	height: 16px;
	background: url(img/list_item_loading2.gif) no-repeat center center;
	float: right;
	position: absolute;
	top: 3px;
	right: 3px;
}

.datacontainer li .verified
{
	width: 16px;
	height: 16px;
	background: url(img/list_item_verified.png) no-repeat center center;
	float: right;
	position: absolute;
	top: 3px;
	right: 3px;
}

.datacontainer li .removed
{
	width: 16px;
	height: 16px;
	background: url(img/list_item_unverified.png) no-repeat center center;
	float: right;
	position: absolute;
	top: 3px;
	right: 3px;
}

.datacontainer .highlight
{
	border: 1px solid #FFF;
}

.datacontainer li.selected .loading
{
	background: url(img/list_item_loading.gif) no-repeat center center;
}

.list ul.toggle
{
	margin-left: 7%;
	list-style: none;
	padding: 10px 0px;
}

.list ul.toggle li
{
	width: 50%;
	display: inline-block;
	text-align: center;
	padding: 7px 5px 5px;
	-moz-box-shadow: inset rgba(0, 0, 0, 0.4) 0 2px 2px, rgba(255, 255, 255, 0.15) 0 1px 1px;
	-webkit-box-shadow: inset rgba(0, 0, 0, 0.4) 0 2px 2px, rgba(255, 255, 255, 0.15) 0 1px 1px;
	border: 1px solid #31374D;
	border-left: 0px;
	font-weight: bold;
	font-size: 0.9em;
	background: -moz-linear-gradient(-90deg, #848ea2, #5b687f);
	background: -webkit-gradient(linear, left top, left bottom, from(#848ea2), to(#5b687f));;
	cursor: pointer;
}

.list ul.toggle li.selected
{
	color: rgba(255, 255, 255, 0.9);
	background: -moz-linear-gradient(-90deg, #31374D, #5b687f);
	background: -webkit-gradient(linear, left top, left bottom, from(#31374D), to(#5b687f));;
}

.list ul.toggle li.first
{
	border: 1px solid #31374D;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-bottomleft: 5px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-bottom-left-radius: 5px;
}

.list ul.toggle li.last
{
	-moz-border-radius-topright: 5px;
	-moz-border-radius-bottomright: 5px;
	-webkit-border-top-right-radius: 5px;
	-webkit-border-bottom-right-radius: 5px;
}


#ungroupedlist .data li.loading, #groupedlist .data li.loading
{
	background: url(img/list_loading.gif) no-repeat top center;
	text-align: center;
	padding-top: 42px;
	text-shadow: 0 1px rgba(255, 255, 255, 0.3);
	border: 0px;
	list-style: none;
}


/* UNGROUPED */

#ungroupedlist .data li
{
	padding: 5px 4px;
	list-style: none;
}

#ungroupedlist .data li.selected
{
	background: #31374D;
	color: rgba(255, 255, 255, 0.8);
}

#drag_marker
{
	background: #31374D;
	color: #FFF;
	border: 1px solid #FFF;
	padding: 3px 10px;
	
	-moz-border-radius: 15px;
	-webkit-border-radius: 15px;
}


/* GROUPED */

#groupedlist
{
	padding-right: 5px;
	float: right;
}

#groupedlist .data li
{
	border: 1px solid rgba(255, 255, 255, 0.2);
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	margin: 0px 10px 10px 0px;
	padding: 3px 4px;
}

#groupedlist .data li div.grouped_item
{
	padding: 3px 4px;
	position: relative;
}

#groupedlist .data li div.delete
{
	position: absolute;
	right: 0px;
	top: 2px;
	background: rgba(255, 255, 255, 0.3);
	-moz-border-radius: 10px;
	font-size: 0.8em;
	padding: 0px;
	width: 13px;
	height: 13px;
	text-align: center;
	line-height: 13px;
	color: rgba(0, 0, 0, 0.5);
}

#groupedlist .data li div.delete:hover
{
	background-color: rgba(0, 0, 0, 0.6);
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
}

#groupedlist .data li.removed div.delete:hover
{
	background: rgba(255, 255, 255, 0.3);
	color: rgba(0, 0, 0, 0.5);
	cursor: auto;
}

#groupedlist .data li.selected
{
	border-color: #31374D;
	-moz-box-shadow: 0px 0px 5px #31374D;
	-webkit-box-shadow: 0px 0px 5px #31374D;
	box-shadow: 0px 0px 5px #31374D;
}

#groupedlist .data li.drag_hover
{
	border-color: #FFF;
}

#groupedlist li.selected .loading
{
	background: url(img/list_item_loading2.gif) no-repeat center center;
}

/* INFOVIEW */
#rhs
{
	overflow: hidden;
	overflow-y: scroll;
}

#infoview
{
	font-size: 1.5em;
	font-weight: bold;
	color: #BBB;
	margin: 2em;
	text-align: center;
}

#infoview .loading
{
	background: url(img/info_loading.gif) no-repeat top center;
	text-align: center;
	padding-top: 42px;
	border: 0px;
	list-style: none;
	font-weight: normal;
	font-size: 0.8em;
}